import request from '@/utils/request'

export function getDepartmentList(params) {
  return request({
    url: '/auth/listAuthDepartment',
    method: 'get',
    params
  })
}

export function getListAndParks(params) {
  return request({
    url: '/auth/listAuthPark',
    method: 'get',
    params
  })
}

export function initRail(query) {
  return request({
    url: `/parkPort/rail/init/${query.portId}`,
    method: 'get',
    params: query
  })
}

export function getListAuthPark(data) {
  return request({
    url: '/auth/listAuthPark',
    method: 'post',
    data
  })
}
